package ke24.ga.extension;

public class Parameters {
    private int numEvolution;
    private int populationSize;
    private int mutationRate;
    private int numExecution;
    
    public Parameters() {
      //default settings
        this.numEvolution = 100;
        this.populationSize = 512;
        this.mutationRate = 20;
        this.numExecution = 1;
    }
    
    public Parameters(int numEvolution, int populationSize, int mutationRate, int numExecution) {
        setNumEvolution(numEvolution);
        setPopulationSize(populationSize);
        setMutationRate(mutationRate);
        setNumExecution(numExecution);
    }
    
    public void setNumEvolution(int numEvolution) {
        this.numEvolution = numEvolution;
    }
    public int getNumEvolution() {
        return numEvolution;
    }
    public void setPopulationSize(int populationSize) {
        this.populationSize = populationSize;
    }
    public int getPopulationSize() {
        return populationSize;
    }
    public void setMutationRate(int mutationRate) {
        this.mutationRate = mutationRate;
    }
    public int getMutationRate() {
        return mutationRate;
    }

    public void setNumExecution(int numExecution) {
        this.numExecution = numExecution;
    }

    public int getNumExecution() {
        return numExecution;
    }
}
